<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>个人信息</title>
    <meta name="decorator" content="default"/>
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/IDH/css/sysHome.css"/>
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/bootstrap=v3.3.0/dist/css/bootstrap.min.css"/>
    <script type="text/javascript">
		function getOrder(status){
			$("#statusSearch").val(status);
			$("#orderFrm").submit();
		}
		/* function getOrderTwo(status){
			$("#statusSearchTwo").val(status);
			$("#orderFrmTwo").submit();
		} */
	</script>
</head>


<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/sys/user/info">网站信息</a></li>
    <form action="${ctx }/shop/order/manage" method="post" name="orderFrm" id="orderFrm">
		<input type="hidden" id="statusSearch" name="status"/>
    </form>
    <%--  <form action="${ctx }/shop/dispatch" method="post" name="orderFrmTwo" id="orderFrmTwo">
		<input type="hidden" id="statusSearchTwo" name="status"/>
    </form> --%>
</ul>
<br/>
<div class="col-xs-7 bg-blue table-title">
    <strong>订单汇总</strong>
    <table class="table">
        <tr>
            <td>未付款订单：</td>
            <td onclick='getOrder(1);'><a href="#">${orderNumber.sumWaitPayment }</a></td>
            <td>已付款，待审核订单：</td>
            <td onclick='getOrder(2);'><a href="#">${orderNumber.sumPaymentDone }</a></td>
        </tr>
        <tr>
            <td>已取消订单：</td>
            <td onclick='getOrder(6);'><a href="#">${orderNumber.sumCancel }</a></td>
            <td>待发货订单：</td>
            <td onclick='getOrder(3);'><a href="#">${orderNumber.sumConfirmed }</a></td>
        </tr>
        <tr>
            <td>交易完成订单：</td>
            <td onclick='getOrder(5);'><a href="#">${orderNumber.sumCommit }</a></td>
            <td>退款申请订单：</td>
            <td onclick='getOrder(7);'><a href="#">${orderNumber.sumRefund }</a></td>
        </tr>
    </table>
</div>
<%--<div class="col-xs-7 bg-lblue table-title">
    <strong>退款订单汇总</strong>
    <table class="table">
        <tr><td>【卖家需立即处理】退款协议等待卖家确认中：</td><td>123</td></tr>
        <tr><td>【卖家需立即处理】等待卖家收货：</td><td>12</td></tr>
        <tr><td>【等待买家处理完】卖家不同意协议，等待买家修改：</td><td>32</td></tr>
        <tr><td>【等待买家处理完】退款协议达成，等待买家退货：</td><td>9</td></tr>
    </table>
</div>--%>
<div class="col-xs-7 bg-grey table-title">
    <strong>缺货汇总</strong>
    <table class="table">
        <tr>
            <td>缺货商品数：</td>
            <td><a href="${ctx}/order/stock/manage">${outOfStockNumber} </a></td>
        </tr>
    </table>
</div>
</body>
</html>
